//
//  WDRootWDHDViewController.m
//  qiJi
//
//  Created by 凤利史 on 2018/3/29.
//  Copyright © 2018年 sunrose. All rights reserved.
//

#import "WDRootWDHDViewController.h"
#import "HDRootTableViewCell.h"
@interface WDRootWDHDViewController ()<UITableViewDelegate , UITableViewDataSource>
@property(nonatomic,strong) UITableView *huoDongTableView;

@end

@implementation WDRootWDHDViewController
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    
    [self.navigationController setNavigationBarHidden:NO animated:NO];
    
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
     self.view.backgroundColor = getColor(@"FAFAFA");
    [self creationView];
    // Do any additional setup after loading the view.
}
- (void)creationView{
    
    self.title = @"我的活动";
    
    _huoDongTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 2, DEF_SCREEN_WIDTH, DEF_SCREEN_HEIGHT - (KIsiPhoneX?84:64) - 2)];
    _huoDongTableView.backgroundColor = [UIColor whiteColor];
    _huoDongTableView.delegate = self;
    _huoDongTableView.dataSource = self;
    _huoDongTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    [self.view addSubview:_huoDongTableView];
    
    UIView *threadView = [[UIView alloc]initWithFrame:CGRectMake(0, 1, DEF_SCREEN_WIDTH, 1)];
    threadView.backgroundColor = getColor(@"E6E6E6");
    [self.view addSubview:threadView];
    
}

#pragma mark --- UITableViewDelegate ---

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return 239*CHANGE_SIZE;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    
}

#pragma mark --- UITableViewDataSource ---

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 11;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    [tableView registerClass:[HDRootTableViewCell class] forCellReuseIdentifier:@"identifier"];
    HDRootTableViewCell *cell = (HDRootTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"identifier" forIndexPath:indexPath];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
